package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.system.domain.SysUserMemberConfig;
import org.dromara.system.domain.common.BasePageReqDTO;

import java.math.BigDecimal;

/**
 * 会员配置业务对象 sys_user_member_config
 *
 * @author Lion Li
 * @date 2025-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@AutoMapper(target = SysUserMemberConfig.class, reverseConvertGenerate = false)
public class SysUserMemberConfigBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     * 会员名称
     */
    @NotBlank(message = "会员名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String memberName;

    /**
     * 会员开通价格
     */
    @NotNull(message = "会员开通价格不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal memberPrice;

    /**
     * 开通会员赠送待返积分
     */
    @NotNull(message = "开通会员赠送待返积分不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal memberPoints;

    /**
     * 备注
     */
    @NotBlank(message = "会员备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;

    private Integer sort;

    private String userName;

}
